package com.craterhill.java.ccp.dao.impl;

import java.util.List;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.craterhill.java.ccp.common.beans.College;
import com.craterhill.java.ccp.dao.CollegesDao;

@Repository
public class CollegesDaoImpl extends AbstractDao<College> implements CollegesDao {

	@Autowired
	public CollegesDaoImpl(final DataSource dataSource) {
		super(dataSource);
	}

	@Override
	public College find(int recordId) {
		return null;
	}

	@Override
	public List<College> findAll() {
		return super.findMultipleObject(FIND_ALL_COLLEGES, new CollegesExtractor());
	}
}
